-------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/moda/Desktop/democracy inequality antitrust jop desk/output/logs/figure-e1.log
  log type:  text
 opened on:  29 Dec 2024, 10:10:13

. do "/var/folders/fd/pv2pbmn15zs4dbx46gw3w79w0000gn/T//SD01528.000000"

. /*
> #################################################################
> # "Democracy, Inequality and Antitrust"                         #
> #   By Michael O Allen, Kenneth Scheve, and David Stasavage     #
> #                                                               #
> #   This file:                                                  #
> #   Replication code for Figure E1                                                      #
> #                                                               #
> #   Last modified: 12/18/2024                                   #
> #################################################################
> */
. 
. cd "/Users/moda/Desktop/democracy inequality antitrust jop desk"
/Users/moda/Desktop/democracy inequality antitrust jop desk

. use "./data/cli_p3.dta", clear

. 
. xtset cid p3

Panel variable: cid (unbalanced)
 Time variable: p3, 1 to 40, but with gaps
         Delta: 1 unit

. 
. // PARALLEL TRENDS
. xtreg p3_CLI_DV F(2/-2)(i.dem_trans##i.top1Share_per_shock) gdppc_lag1_ln trade_openness_lag1 crisis_3_percent_lag1 i.p
> 3 if top1_n >= 20, fe vce(cl cid)

Fixed-effects (within) regression               Number of obs     =        586
Group variable: cid                             Number of groups  =         95

R-squared:                                      Obs per group:
     Within  = 0.4409                                         min =          1
     Between = 0.1536                                         avg =        6.2
     Overall = 0.0206                                         max =         18

                                                F(33,94)          =          .
corr(u_i, Xb) = -0.6874                         Prob > F          =          .

                                                          (Std. err. adjusted for 95 clusters in cid)
-----------------------------------------------------------------------------------------------------
                                    |               Robust
                          p3_CLI_DV | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
------------------------------------+----------------------------------------------------------------
                       F2.dem_trans |
                                 1  |  -.0816405   .0461788    -1.77   0.080    -.1733295    .0100486
                                    |
                        F.dem_trans |
                                 1  |  -.0821249   .0614516    -1.34   0.185    -.2041385    .0398886
                                    |
                        1.dem_trans |  -.0838281   .0627396    -1.34   0.185    -.2083991    .0407429
                                    |
                        L.dem_trans |
                                 1  |   .0177107   .0432209     0.41   0.683    -.0681054    .1035269
                                    |
                       L2.dem_trans |
                                 1  |    .045337   .0488052     0.93   0.355    -.0515669    .1422408
                                    |
             F2.top1Share_per_shock |
                                 1  |   .0023961   .0268243     0.09   0.929    -.0508642    .0556563
                                    |
              F.top1Share_per_shock |
                                 1  |   .0081355   .0259138     0.31   0.754    -.0433169    .0595879
                                    |
              1.top1Share_per_shock |   .0159812   .0216578     0.74   0.462    -.0270209    .0589834
                                    |
              L.top1Share_per_shock |
                                 1  |    .019834   .0244299     0.81   0.419    -.0286722    .0683402
                                    |
             L2.top1Share_per_shock |
                                 1  |   .0419201   .0181893     2.30   0.023     .0058049    .0780353
                                    |
F2.dem_trans#F2.top1Share_per_shock |
                               1 1  |  -.0525237   .0761085    -0.69   0.492     -.203639    .0985916
                                    |
  F.dem_trans#F.top1Share_per_shock |
                               1 1  |   -.051193   .1565553    -0.33   0.744    -.3620371    .2596511
                                    |
      dem_trans#top1Share_per_shock |
                               1 1  |  -.1256025   .1415271    -0.89   0.377    -.4066079    .1554029
                                    |
  L.dem_trans#L.top1Share_per_shock |
                               1 1  |  -.0833454   .0739499    -1.13   0.263    -.2301746    .0634839
                                    |
L2.dem_trans#L2.top1Share_per_shock |
                               1 1  |  -.1522442   .0772675    -1.97   0.052    -.3056606    .0011722
                                    |
                      gdppc_lag1_ln |  -.1043623   .0830462    -1.26   0.212    -.2692525    .0605278
                trade_openness_lag1 |   .0000971   .0007794     0.12   0.901    -.0014504    .0016447
              crisis_3_percent_lag1 |   .0234826   .0666199     0.35   0.725    -.1087929    .1557581
                                    |
                                 p3 |
                       (1953,1956]  |   .0509823   .0277971     1.83   0.070    -.0042095    .1061742
                       (1956,1959]  |   .0629209   .0397349     1.58   0.117    -.0159737    .1418155
                       (1959,1962]  |   .0930009   .0435517     2.14   0.035      .006528    .1794739
                       (1962,1965]  |   .1395372   .0487295     2.86   0.005     .0427836    .2362907
                       (1965,1968]  |   .1744521   .0646839     2.70   0.008     .0460206    .3028835
                       (1968,1971]  |   .1755949   .0670419     2.62   0.010     .0424816    .3087081
                       (1971,1974]  |   .2128963   .0729693     2.92   0.004     .0680142    .3577785
                       (1974,1977]  |   .2423033   .0795124     3.05   0.003     .0844295    .4001771
                       (1977,1980]  |   .2756383   .0734207     3.75   0.000     .1298597    .4214169
                       (1980,1983]  |   .2961195    .076822     3.85   0.000     .1435875    .4486514
                       (1983,1986]  |   .2789174   .0861804     3.24   0.002     .1078042    .4500306
                       (1986,1989]  |   .3339089   .0996931     3.35   0.001      .135966    .5318518
                       (1989,1992]  |   .4077309   .1063827     3.83   0.000     .1965056    .6189563
                       (1992,1995]  |   .4671789   .1034505     4.52   0.000     .2617754    .6725823
                       (1995,1998]  |   .4890078   .1023348     4.78   0.000     .2858196    .6921959
                       (1998,2001]  |   .5289386   .1081204     4.89   0.000     .3142631    .7436142
                       (2001,2004]  |   .5749543   .1138104     5.05   0.000     .3489812    .8009275
                                    |
                              _cons |    .925491   .6745046     1.37   0.173    -.4137537    2.264736
------------------------------------+----------------------------------------------------------------
                            sigma_u |  .39927713
                            sigma_e |  .13597556
                                rho |  .89607561   (fraction of variance due to u_i)
-----------------------------------------------------------------------------------------------------

. est store p3_lags_leads_loglog

. estadd local years "1951+"

added macro:
              e(years) : "1951+"

. estadd local fe_year "Yes"

added macro:
            e(fe_year) : "Yes"

. estadd local fe_unit "Yes"

added macro:
            e(fe_unit) : "Yes"

. estadd local controls "Yes"

added macro:
           e(controls) : "Yes"

. 
. coefplot, nolabel drop(0*) keep(*dem_trans) omitted vertical ci(90) yline(0)  ///
>         xlabel(, labsize(large)) ytitle(, size(large)) ///
>         ylabel(, labsize(large)) ytitle(, size(large)) ///
>         title(Democracy, size(large)) ///
>         ciopts(lwidth(.75) msize(4)) ///
>         msize(2) msymbol(dot) ///
>         rename(1F2.dem_trans = "t-2" ///
>                    1F.dem_trans = "t-1" ///
>                    1.dem_trans = "t" ///
>                    1L.dem_trans = "t+1" ///
>                    1L2.dem_trans = "t+2")
(note:  named style dot not found in class symbol, default attributes used)

.                    
. graph export "output/figures/figure-e1a.eps", replace
(file output/figures/figure-e1a.eps not found)
file output/figures/figure-e1a.eps saved as EPS format

.                    
. coefplot, nolabel drop(0* *dem*) keep(*top1Share_per_shock) omitted vertical ci(90) yline(0)  ///
>         xlabel(, labsize(large)) ytitle(, size(large)) ///
>         ylabel(, labsize(large)) ytitle(, size(large)) ///
>         title("Top 1% Share", size(large)) ///
>         ciopts(lwidth(.75) msize(4)) ///
>         msize(2) msymbol(dot) ///
>         rename(1F2.top1Share_per_shock = "t-2" ///
>                    1F.top1Share_per_shock = "t-1" ///
>                    1.top1Share_per_shock = "t" ///
>                    1L.top1Share_per_shock = "t+1" ///
>                    1L2.top1Share_per_shock = "t+2")
(note:  named style dot not found in class symbol, default attributes used)

.                    
. graph export "output/figures/figure-e1b.eps", replace
(file output/figures/figure-e1b.eps not found)
file output/figures/figure-e1b.eps saved as EPS format

.                    
. coefplot, nolabel drop(0*) ///
>         keep(1F2.dem_trans#1F2.top1Share_per_shock ///
>                  1F.dem_trans#1F.top1Share_per_shock ///
>                  1.dem_trans#1.top1Share_per_shock ///
>                  1L.dem_trans#1L.top1Share_per_shock ///
>                  1L2.dem_trans#1L2.top1Share_per_shock ///
>         ) omitted vertical ci(90) yline(0)  ///
>         xlabel(, labsize(large)) ytitle(, size(large)) ///
>         ylabel(, labsize(large)) ytitle(, size(large)) ///
>         title("Top 1% Share x Democracy", size(large)) ///
>         ciopts(lwidth(.75) msize(4)) ///
>         msize(2) msymbol(dot) ///
>         rename(1F2.dem_trans#1F2.top1Share_per_shock = "t-2" ///
>                    1F.dem_trans#1F.top1Share_per_shock = "t-1" ///
>                    1.dem_trans#1.top1Share_per_shock = "t" ///
>                    1L.dem_trans#1L.top1Share_per_shock = "t+1" ///
>                    1L2.dem_trans#1L2.top1Share_per_shock = "t+2")
(note:  named style dot not found in class symbol, default attributes used)

. 
. graph export "output/figures/figure-e1c.eps", replace
(file output/figures/figure-e1c.eps not found)
file output/figures/figure-e1c.eps saved as EPS format

. 
end of do-file

. log close
      name:  <unnamed>
       log:  /Users/moda/Desktop/democracy inequality antitrust jop desk/output/logs/figure-e1.log
  log type:  text
 closed on:  29 Dec 2024, 10:10:33
-------------------------------------------------------------------------------------------------------------------------
